<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        // Array.isArray()    
        // Array.from()


        // String.fromCharCode()



        // function Person(name) {
        //     this.name = name;
        // }


        // Person.prototype.say = function () {
        //     console.log(11);
        // }


        // Person.cc = '我为自己而活';


        // Person.isPerson = function () {
        //     console.log('我是个人啊');
        // }


        // const p1 = new Person('yy');

        // console.log(p1);


        // // p1.isPerson()


        // Person.isPerson()

        // console.log(Person.cc);




        class Person {
            constructor(name) {
                this.name = name;
            }
            say() {
                console.log(11);
            }

            static a = 1;
            static speak() {
                console.log(22);
            }
        }

        const p2 = new Person('yy');


        // p2.speak()

        Person.speak()
        console.log(Person.a);



    </script>

</body>

</html>